package com.lcj.dr.service;

import com.github.pagehelper.PageInfo;
import com.lcj.dr.controller.form.CanPayForm;
import com.lcj.dr.controller.form.PayFineForm;
import com.lcj.dr.controller.form.SearchFineForm;
import com.lcj.dr.db.pojo.DriverFineEntity;

import java.util.HashMap;
import java.util.List;

/**
 * 司机罚款 service
 */
public interface FineService {

    PageInfo<DriverFineEntity> searchFineByPage(SearchFineForm form);

    /**
     * 能否支付罚款
     * @param form
     * @return
     */
    HashMap canPay(CanPayForm form);

    /**
     * 支付罚款
     * @param form
     * @return
     */
    Integer payFine(PayFineForm form);
}
